// formalistics index2 js
/*var reg = $('#registration-content-wrapper h2');
	$(reg).on('click', function(event){
		event.preventDefault();
		var regLinkId = $(this).children('a').attr('href');
		$('html, body').animate({
			scrollTop: $(regLinkId).offset().top
		}, 'slow');
	});



*/


$(document).ready(function(){

	$('.scrollReg').on('click', function(event){
			event.preventDefault();
			var regLinkId = $(this).children('a').attr('href');
			$('html, body').animate({
				scrollTop: regLinkId.offset().top
			}, 'slow');
	});
	
	/*get_browser() == "Chrome"
	get_browser_version() == "3"*/

	// JQUERY BASED ANIMATION

	/*var bannerlogoAni = $('#logo-banner-wrapper');

	bannerlogoAni.css({
		'position': 'relative',
		'top': -50
	});

	setTimeout(function(){
		bannerlogoAni.animate({
			opacity:1,
			top: 0
		});		
	}, 500 );

	var laptopAni = $('#laptop-wrapper');
	
	laptopAni.css({
		'position': 'relative',
		'right': -80
	})
	setTimeout(function() {
		laptopAni.animate({
			opacity: 1,
			right: 0
		});	
	}, 1000);

	setTimeout(function(){
		
		$('#forms-wrapper').animate({
			opacity:1
		}, function(){
			$('#workflows-wrapper').animate({
				opacity:1
			}, function	(){
				$('#request-wrapper').animate({
					opacity:1
				});
			});
		});

	}, 2000);

	$('#banner-content-right > h4').addClass('compNameAni');
	$('.compNameAni').css({
		'position':'relative',
		'bottom': -10
	});

	setTimeout(function(){
		$('.compNameAni').animate({
			opacity: 1,
			bottom: 0
		});	
	},3500);

	$('#banner-content-right > p').addClass('textInfo');
	$('.textInfo').css({
		'position': 'relative',
		'bottom': -8
	});

	setTimeout(function(){
		$('.textInfo').animate({
			opacity: 1,
		bottom: 0
	});
	}, 4000);

	setTimeout(function(){
		$('#gs3display').animate({
		opacity:1,
		backgroundPosition: -9
		});
	}, 4500);*/

	// CSS BASED ANIMATION

	var bannerlogoAni = $('#logo-banner-wrapper');

	setTimeout(function(){
		bannerlogoAni.addClass('bounceIn').css('opacity', 1);		
	}, 500 );

	var laptopAni = $('#laptop-wrapper');
	
	setTimeout(function() {
		laptopAni.addClass('bounceInRight').css('opacity', 1);
	}, 1000);

	setTimeout(function(){
		
		/*$('#forms-wrapper').animate({
			opacity:1
		}, function(){
			$('#workflows-wrapper').animate({
				opacity:1
			}, function	(){
				$('#request-wrapper').animate({
					opacity:1
				});
			});
		});*/
		$('#forms-wrapper').addClass('fadeInRight').css('opacity', 1);
		$('#workflows-wrapper').addClass('fadeInRight').css('opacity', 1);
		$('#request-wrapper').addClass('fadeInLeft').css('opacity', 1);

	}, 2000);

	$('#banner-content-right > h4').addClass('compNameAni');
	setTimeout(function(){
	$('.compNameAni').addClass('fadeIn').css('opacity', 1);
	},3500);

	$('#banner-content-right > p').addClass('textInfo');
	$('.textInfo').css({
		'position': 'relative',
		'bottom': -8
	});

		setTimeout(function(){
		$('#bg-radial').animate({
			opacity:1		
		}, 'slow');
	}, 3600);

	setTimeout(function(){
		$('.textInfo').animate({
			opacity: 1,
		bottom: 0
	});
	}, 4500);

	setTimeout(function(){
		$('#gs3display').addClass('bounceInLeft').css('opacity', 1);
	}, 5000);

	if ($(window).width() === 960) {
		$('#gs3display').removeClass('bounceInLeft');
	};	

});		